package com.chat.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author weikjie
 * @since 2024-04-22
 */
@TableName("t_history_message")
public class HistoryMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    private LocalDateTime time;

    private String content;

    private Long userId;

    private String userName;

    private String userAvatar;

    private String toUserAccount;

    private Boolean isGroup;

    private String userAccount;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public LocalDateTime getTime() {
        return time;
    }

    public void setTime(LocalDateTime time) {
        this.time = time;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getUserAvatar() {
        return userAvatar;
    }

    public void setUserAvatar(String userAvatar) {
        this.userAvatar = userAvatar;
    }
    public String getToUserAccount() {
        return toUserAccount;
    }

    public void setToUserAccount(String toUserAccount) {
        this.toUserAccount = toUserAccount;
    }
    public Boolean getIsGroup() {
        return isGroup;
    }

    public void setIsGroup(Boolean isGroup) {
        this.isGroup = isGroup;
    }
    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    @Override
    public String toString() {
        return "HistoryMessage{" +
            "id=" + id +
            ", time=" + time +
            ", content=" + content +
            ", userId=" + userId +
            ", userName=" + userName +
            ", userAvatar=" + userAvatar +
            ", toUserAccount=" + toUserAccount +
            ", isGroup=" + isGroup +
            ", userAccount=" + userAccount +
        "}";
    }
}
